<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/layouts/content.xhtml">

	<ui:define name="content">
	<h:form id="addCarHire">
		<h2>#{messageSource['addcarhire']}</h2>
		<h:messages></h:messages>
		<div class="input"><div class="description">#{messageSource['hire.car']}*</div><p:inputText id="car" value="#{hire.car}"/><h:message for="car"/></div>
		<div class="input"><div class="description">#{messageSource['hire.city']}*</div><p:inputText id="city" value="#{hire.city}"/><h:message for="city"/></div>
		<div class="input"><div class="description">#{messageSource['hire.days']}*</div><p:inputText id="numberofDays" value="#{hire.numberOfDays}"/><h:message for="numberofDays"/></div>
		<div class="input"><div class="description">#{messageSource['hire.driver.included']}*</div><h:selectBooleanCheckbox id="driver" value="#{hire.driverIncluded}" /></div>			
		<div class="input"><div class="description">#{messageSource['hire.price']}*</div><p:inputText id="price" value="#{hire.price}"/></div>
		<div class="input"><div class="description">#{messageSource['hire.comment']}</div><p:inputTextarea value="#{hire.comment}" style="width:162px;height:100px;" effectDuration="400" /></div> 
		
		
		<div class="input"><p:commandButton id="proceed" action="submit" value="Proceed"  update="@form"/></div>
	</h:form>
	</ui:define>
</ui:composition>